package fr.afcepf.ticketing.dao;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import fr.afcepf.ticketing.domain.Address;
import fr.afcepf.ticketing.domain.CreditCard;
import fr.afcepf.ticketing.domain.Customer;
import fr.afcepf.ticketing.domain.Order;
import fr.afcepf.ticketing.domain.OrderLine;
import fr.afcepf.ticketing.service.CartTicket;

public interface OrderDao extends GenericDao<Order, Integer> {
	
	public Collection<Order> getOrdersOfClient(Long numCli);	
	public Collection<Order> getOrdersOfClient(Long numCli, Date date);
	public Collection<Order> getAllOrders();
	public Collection<OrderLine> editOrderLineByOrder(Integer num);
	public Order createOrder(Customer c, Address ad, CreditCard cb, List<CartTicket> cartTickets);
	public List<OrderLine> listOrderLines(List<CartTicket> cartTickets);
	
}
